<form id="frmModal" name="frmModal" action="<?php echo site_url(array('psdm','karyawan','ajax','saveStatus')) ?>" method="post">
<h3 class="dialog_title"><span>Set Status Karyawan</span></h3>

<div class="dialog_content" style="width: 550px">
<div style="border-bottom: 1px solid #CCC; padding: 10px 0;">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
	<tr>
		<td align="right">Kode Karyawan :</td>
		<td>
			<strong><?php echo $kary_id?></strong>
			<input	type="hidden" value="<?php echo $kary_id?>" name="inp[0]" />
		</td>
	</tr>
	<tr>
		<td align="right">Nama :</td>
		<td><strong><?php echo $kary_nama?></strong></td>
	</tr>
	<tr>
	  <td width="25%" align="right">Status Kerja : </td>
	  <td>
	  	<select name="inp[1]" class="vMiddle floatL validate['required']" 
	  		onchange="this.value=='CT'? $('stst-cuti').setStyle('display','table-row-group'): $('stst-cuti').hide();">
			<option>--- pilih ---</option>
			<?php foreach($sts_data->result_array() as $row): ?>
			<option value="<?php echo $row['kary_sts_id']?>"><?php echo $row['kary_sts_nama']?></option>
			<?php endforeach;?>
		</select>
	  </td>
	  </tr>
	<tbody id="stst-cuti" style="display: none;">
	<tr>
		<td width="" align="right">Jenis Cuti :</td>
		<td>
			<select name="inp[2][1]">
			<option>--- pilih ---</option>
				<?php foreach($cuti_options as $kk=>$val): ?>
			<option value="<?php echo $kk?>"><?php echo $val?></option>
			<?php endforeach;?>
			</select>
		</td>
	</tr>
	<tr>
		<td align="right">Tanggal Mulai :</td>
		<td><input id="tglMulai" class="datepicker validate['required'] revalidate" name="inp[2][2]" /></td>
	</tr>
	<tr>
		<td align="right">Tanggal Selesai :</td>
		<td><input id="tglSelesai" class="datepicker validate['required'] revalidate" name="inp[2][3]" /></td>
	</tr>
	<tr>
		<td align="right" valign="top">Keterangan :</td>
		<td><textarea name="inp[2][4]" rows="5" cols="40" class="validate['required','length[10, -1]'] revalidate"></textarea></td>
	</tr>
	</tbody>
</table>

</div>
<div class="dialog_buttons" style="padding: 12px 10px">
	<input class="button" type="submit" value="Save" /> 
	<input class="button" type="button" value="Cancel" onclick="FBModal_hide()" />
</div>
</div>

</form>
